<?php
/**
 * 后台模块基类
 */
namespace app\common\controller;

use think\Controller;
use think\facade\Session;

class AdminBase extends Controller
{
    public function initialize(){
        $session = Session::get('user');
        if( !$session ){
            $this->redirect(url('/admin/login/'));
        }
    }
}
